import React from 'react';
import { useHistory } from 'umi';
import {Button, Result} from "antd";

const NotFound = () => {
  const history = useHistory();

  const goHome = () => {
    history.replace('/')
  }
  return (
    <Result
      status="404"
      title="404"
      subTitle="Sorry, the page you visited does not exist."
      extra={<Button className="bg-[#1B1A20] text-white" onClick={goHome}>Back Home</Button>}
    />
  );
};

export default NotFound;
